package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_jieshi_upgrade", autoSave = true)
public class LogJieShiUpgrade {

    @FieldTypeAnnotation(desc = "活动Id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "类型,1:街市升级 2:街道司升级")
    private int type;

    @FieldTypeAnnotation(desc = "升级前等级")
    private int beforeLevel;

    @FieldTypeAnnotation(desc = "升级后等级")
    private int afterLevel;

    @FieldTypeAnnotation(desc = "强化前战力")
    private long beforeAttack;

    @FieldTypeAnnotation(desc = "强化后战力")
    private long afterAttack;

    @FieldTypeAnnotation(desc = "交子消耗前数量")
    private long beforeJiaoZi;

    @FieldTypeAnnotation(desc = "交子消耗数量")
    private long costJiaoZi;

    @FieldTypeAnnotation(desc = "交子消耗后数量")
    private long afterJiaoZi;

    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogJieShiUpgrade(int activityId, long userId, int type, int beforeLevel, int afterLevel, long beforeAttack, long afterAttack, long beforeJiaoZi, long costJiaoZi, long afterJiaoZi) {
        this.activityId = activityId;
        this.userId = userId;
        this.type = type;
        this.beforeLevel = beforeLevel;
        this.afterLevel = afterLevel;
        this.beforeAttack = beforeAttack;
        this.afterAttack = afterAttack;
        this.beforeJiaoZi = beforeJiaoZi;
        this.costJiaoZi = costJiaoZi;
        this.afterJiaoZi = afterJiaoZi;
        this.time = new Date();
    }
}
